
KERN_DIR := /home/SDK2_kernel/3.4.43

obj-m += 7102_led.o

all:
	make -C $(KERN_DIR) M=`pwd` modules
	arm-goke-linux-uclibcgnueabi-gcc led_app.c -o led_app
	
cp:
	cp -rf 7102_led.ko  /home/rootfs_uClibc_SDK2/filesystem/myapp 
	cp -rf led_app      /home/rootfs_uClibc_SDK2/filesystem/myapp 

.PHONY:clean
clean:
	make -C $(KERN_DIR) M=`pwd` modules clean
	rm -rf led_app


